<?php
if ( !defined('IN_ADMINCP') || !defined('IN_SEC') ){
	exit('Access Denied.');
}

$setting = conf('buy');

if ( is_post() ){
	$mixed = 'min_amount';
	if ( saveconfig('buy', $mixed, $allow, $_G['gp_buy']) ){
		Session::Set('notice', '操作成功');
	}else{
		Session::Set('error', '操作失败');
	}
	$admincp->redirect('setting', 'buy');
}

?>